$(document).ready(function(){
	$("#submit").click(function() {
		var username = $("#username").prop('value');
		var password = $("#password").prop('value');
		if(!username || username == "") {
			alert("账号不能为空");
			return;
		}
		if(!password || password == "") {
			alert("密码不能为空");
			return;
		}
		var param = {
			username:username,
			password:password
		}
		new HttpUtils().get('com.lvtu.dashboard.api.login', param, function(httpResult) {
			var data = httpResult.data;
			if(!data) {
				console.log("服务器返回用户信息异常");
				alert("服务器维护中，请稍后重试！");
				return;
			}
			window.location.href="main.html";
		});
	});
	
	
	
});